import service from '@/utils/request'

// @Tags CoopCom
// @Summary 创建CoopCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CoopCom true "创建CoopCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /coopCom/createCoopCom [post]
export const createCoopCom = (data) => {
     return service({
         url: "/coopCom/createCoopCom",
         method: 'post',
         data
     })
 }


// @Tags CoopCom
// @Summary 删除CoopCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CoopCom true "删除CoopCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /coopCom/deleteCoopCom [delete]
 export const deleteCoopCom = (data) => {
     return service({
         url: "/coopCom/deleteCoopCom",
         method: 'delete',
         data
     })
 }

// @Tags CoopCom
// @Summary 删除CoopCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除CoopCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /coopCom/deleteCoopCom [delete]
 export const deleteCoopComByIds = (data) => {
     return service({
         url: "/coopCom/deleteCoopComByIds",
         method: 'delete',
         data
     })
 }

// @Tags CoopCom
// @Summary 更新CoopCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CoopCom true "更新CoopCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /coopCom/updateCoopCom [put]
 export const updateCoopCom = (data) => {
     return service({
         url: "/coopCom/updateCoopCom",
         method: 'put',
         data
     })
 }


// @Tags CoopCom
// @Summary 用id查询CoopCom
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CoopCom true "用id查询CoopCom"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /coopCom/findCoopCom [get]
 export const findCoopCom = (params) => {
     return service({
         url: "/coopCom/findCoopCom",
         method: 'get',
         params
     })
 }


// @Tags CoopCom
// @Summary 分页获取CoopCom列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取CoopCom列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /coopCom/getCoopComList [get]
 export const getCoopComList = (params) => {
     return service({
         url: "/coopCom/getCoopComList",
         method: 'get',
         params
     })
 }